//
//  BaseNavigationController.m
//  WelfareManager
//
//  Created by timtian on 16/12/23.
//  Copyright © 2016年 timtian. All rights reserved.
//


#import "BaseNavigationController.h"
#import "BaseViewController.h"


@interface BaseNavigationController ()<UIGestureRecognizerDelegate>


@end

@implementation BaseNavigationController

+(void)load {
    //修改全局barButton渲染颜色
     UINavigationBar *navgationBar = [UINavigationBar appearance];
    
    navgationBar.tintColor = [UIColor whiteColor];
    navgationBar.titleTextAttributes = @{
                                         NSForegroundColorAttributeName : [UIColor whiteColor]
                                         };
    
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    self.navigationBar.hidden = YES;
    self.automaticallyAdjustsScrollViewInsets=NO;
    
}


-(void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated {
    
    
    if (self.childViewControllers.count > 0) {
        
        viewController.hidesBottomBarWhenPushed = YES;
    }
    
    [super pushViewController:viewController animated:animated];
    
}

@end
